package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.entity.Teachplan;
import com.xuecheng.content.entity.ext.TeachplanNode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课程计划 Mapper 接口
 * </p>
 *
 * @author 黄子弟
 */
@Mapper
public interface TeachplanMapper extends BaseMapper<Teachplan> {
    /**
     * 查询同一课程下所有章节数据
     * @param courseBaseId 课程id
     * @return
     */
    List<TeachplanNode> selectByCourseBaseId(@Param("id") Long courseBaseId);
}
